Special:Log and the logging table -- unified logging scariness!
[lhc/web/wiklou.git] / includes / SpecialIpblocklist.php
index b2f535b..cf15f4d 100644 (file)
@@ -96,9 +96,8 @@ class IPUnblockForm {
                $block->delete();
 
                # Make log entry
-               $log = new LogPage( wfMsg( "blocklogpage" ), wfMsg( "blocklogtext" ) );
-               $action = wfMsg( "unblocklogentry", $this->ip );
-               $log->addEntry( $action, $this->reason );
+               $log = new LogPage( 'block' );
+               $log->addEntry( 'unblock', Title::makeTitle( NS_USER, $this->ip ), $this->reason );
 
                # Report to the user
                $titleObj = Title::makeTitle( NS_SPECIAL, "Ipblocklist" );